import requests


def ihrm_login():
    login_url = "http://ihrm2-test.itheima.net/api/sys/login"
    login_json = {"mobile": "13800000002", "password": "123456"}
    login_resp = requests.post(url=login_url, json=login_json)

    token = "Bearer " + login_resp.json()['data']
    return token